package com.ksd.modules.rbac.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_apis")
@ApiModel(value = "SysApis对象", description = "权限表")
public class SysApis implements java.io.Serializable{

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("权限路径")
    private String path;

    @ApiModelProperty("权限代号")
    private String code;

    @ApiModelProperty("父ID")
    private Long parentId;

    @ApiModelProperty("权限名称")
    private String title;

    @ApiModelProperty("权限方法")
    private String method;

    @ApiModelProperty("是否启用 1 启用 0禁用")
    private Integer status;

    @ApiModelProperty("是否删除 1删除  0 不删除")
    private Integer isDeleted;

    @ApiModelProperty("排序标记")
    private Integer sort;

    @TableField(exist = false)
    private List<SysApis> children;
}
